<?php

namespace iBrand\Store\Backend\Model;

use Illuminate\Database\Eloquent\Model;
use Prettus\Repository\Contracts\Transformable;
use Prettus\Repository\Traits\TransformableTrait;

class Advertisement extends Model implements Transformable
{
	use TransformableTrait;

	protected $table   = 'el_ad';
	protected $guarded = ['id'];

	public function hasManyData()
	{
		return $this->hasMany('\iBrand\Store\Backend\Model\AdvertisementItem', 'ad_id', 'id');
	}

}
